tar xf ${DOWNLOADDIR}/perl-5.40.2.tar.xz -C ${BUILDDIR}
pushd ${BUILDDIR}/perl-5.40.2
    sed -i "s@/usr/include@${SYSDIR}/cross-tools/include@g" ext/Errno/Errno_pm.PL
    CFLAGS="-D_LARGEFILE64_SOURCE" ./configure.gnu --prefix=${SYSDIR}/cross-tools \
		     -Dprivlib=${SYSDIR}/cross-tools/lib/perl5/5.4x/core_perl \
	             -Darchlib=${SYSDIR}/cross-tools/lib64/perl5/5.4x/core_perl \
	             -Dsitelib=${SYSDIR}/cross-tools/lib/perl5/5.4x/site_perl \
	             -Dsitearch=${SYSDIR}/cross-tools/lib64/perl5/5.4x/site_perl \
	             -Dvendorlib=${SYSDIR}/cross-tools/lib/perl5/5.4x/vendor_perl \
	             -Dvendorarch=${SYSDIR}/cross-tools/lib64/perl5/5.4x/vendor_perl
    make ${JOBS}
    make install
popd
